package org.hxyjs.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
public class Festival implements Serializable {
    private String fno;

    private String fname;

    private Date fbegindate;

    private String fdescribe;

    private String fimg;

    private Date fenddate;

    private static final long serialVersionUID = 1L;

    public String getFno() {
        return fno;
    }

    public void setFno(String fno) {
        this.fno = fno;
    }

    public String getFname() {
        return fname;
    }

    public void setFname(String fname) {
        this.fname = fname;
    }

    public Date getFbegindate() {
        return fbegindate;
    }

    public void setFbegindate(Date fbegindate) {
        this.fbegindate = fbegindate;
    }

    public String getFdescribe() {
        return fdescribe;
    }

    public void setFdescribe(String fdescribe) {
        this.fdescribe = fdescribe;
    }

    public String getFimg() {
        return fimg;
    }

    public void setFimg(String fimg) {
        this.fimg = fimg;
    }

    public Date getFenddate() {
        return fenddate;
    }

    public void setFenddate(Date fenddate) {
        this.fenddate = fenddate;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Festival other = (Festival) that;
        return (this.getFno() == null ? other.getFno() == null : this.getFno().equals(other.getFno()))
            && (this.getFname() == null ? other.getFname() == null : this.getFname().equals(other.getFname()))
            && (this.getFbegindate() == null ? other.getFbegindate() == null : this.getFbegindate().equals(other.getFbegindate()))
            && (this.getFdescribe() == null ? other.getFdescribe() == null : this.getFdescribe().equals(other.getFdescribe()))
            && (this.getFimg() == null ? other.getFimg() == null : this.getFimg().equals(other.getFimg()))
            && (this.getFenddate() == null ? other.getFenddate() == null : this.getFenddate().equals(other.getFenddate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getFno() == null) ? 0 : getFno().hashCode());
        result = prime * result + ((getFname() == null) ? 0 : getFname().hashCode());
        result = prime * result + ((getFbegindate() == null) ? 0 : getFbegindate().hashCode());
        result = prime * result + ((getFdescribe() == null) ? 0 : getFdescribe().hashCode());
        result = prime * result + ((getFimg() == null) ? 0 : getFimg().hashCode());
        result = prime * result + ((getFenddate() == null) ? 0 : getFenddate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", fno=").append(fno);
        sb.append(", fname=").append(fname);
        sb.append(", fbegindate=").append(fbegindate);
        sb.append(", fdescribe=").append(fdescribe);
        sb.append(", fimg=").append(fimg);
        sb.append(", fenddate=").append(fenddate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}